package com.freewater.springboot.demo.aop.simple;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Main {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(AppConfig.class);
        applicationContext.registerShutdownHook();
        final SomeService someService = applicationContext.getBean(SomeService.class);
        someService.hello();
        someService.sayHi();
    }
}
